package org.charles.zhifou.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import org.charles.zhifou.common.enums.BaseEnum;

/**
 * <h1>审核状态枚举类</h1>
 *
 * @author charles
 * @version 1.0
 */
@AllArgsConstructor
public enum ReviewStatusEnum implements BaseEnum {

    REVIEWING(0, "审核中"),
    PASSED(1, "已过审"),
    REJECTED(2, "已拒绝");

    /**
     * 审核状态编号
     */
    @EnumValue
    @JsonValue
    private final Integer code;

    /**
     * 审核状态名称
     */
    private final String value;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }
}
